<?php // objects.php -- Defines a set of Lab and Printer objects

require_once("init.php");
require_once("classes.php");

// First, we define our Lab Objects

$helpdesk = new Lab('The Helpdesk', 'The Forum, just inside the CCL', 'helpdesk', 'http://tcdb.grinnell.edu/wiki', 'x4400', $helpdesk_open);
$av = new Lab('The AV Center', 'Second floor of ARH', 'av', 'http://www.grinnell.edu/Offices/avcenter/', 'x3121', $av_open);
$mathlan = new Lab('The MathLAN', 'Third floor of Noyce', 'mathlan', 'http://www.cs.grinnell.edu/mathlan/', '', $mathlan_open);
$scilab = new Lab('The Science Lab', 'Noyce 1530, Southeast corner of Psychology Wing on First floor', 'scilab', 'pictures/lab_sketchups/scilab.png', '', $scilab_open);
$scilib = new Lab('The Science Library', 'Second floor on Noyce, North side on center', 'scilib', 'http://www.lib.grinnell.edu/collections/Sciencelibrary/', '', $scilib_open);
$iif = new Lab('The IIF', 'Burling Basement, East side', 'iif', 'http://www.lib.grinnell.edu:16080/general/facilities/IIF/index.html', '', $iif_open);
$read = new Lab('Read', 'Read 1st', 'read', '', '', $read_open);
$cleveland = new Lab('Cleveland', 'The Forum, just inside the CCL', 'cleveland', '', '', $cleveland_open);
$younker = new Lab('Younker', 'Younker Pit, North side', 'younker', '', '', $younker_open);
$noyce = new Lab('Noyce 2401 and 2402', 'Close to the East side of the Second floor', 'noyce', '', '', $noyce_open);
$norris = new Lab('Norris', 'Norris 1st', 'norris', '', '', $norris_open);
$lazier = new Lab('Lazier', 'Lazier 1st', 'lazier', '', '', $lazier_open);
$ccl = new Lab('The CCL', 'Center Lounge of Forum', 'ccl', 'labs/ccl.php', '', $ccl_open);
$gencomp = new Lab('Gencomp and Inslab', 'First floor of ARH, Room 124', 'gencomp', '', '', $gencomp_open);
$burling = new Lab('Burling Library', 'South side of campus, adjacent to 6th Avenue', 'burling', 'http://www.lib.grinnell.edu/', '', $burling_open);

// We also need to set the "always open" status of certain labs

$read->set_always_open_status(TRUE);
$cleveland->set_always_open_status(TRUE);
$younker->set_always_open_status(TRUE);
$noyce->set_always_open_status(TRUE);
$norris->set_always_open_status(TRUE);
$lazier->set_always_open_status(TRUE);

// Create an array of Lab objects

$lab_array = array($helpdesk, $av, $mathlan, $scilab, $scilib, $iif, $read, $cleveland, $younker, $noyce, $norris, $lazier, $ccl, $gencomp, $burling);

// If debugging, print the contents of the array

if (DEBUGGING) {
	print_r ($lab_array);
	}

// Now we define our Printer objects

$helpdesk2 = new Printer();
$helpdesk2->set_name('HELPDESK2');
$helpdesk2->set_location('ITS Helpdesk, Forum, right inside Creative Computing Lab');
$helpdesk2->set_string_rep('helpdesk2');
$helpdesk2->set_url('http://helpdesk2.grinnell.edu');
$helpdesk2->set_lab('The Helpdesk');
$helpdesk2->set_toner_level($helpdesk2_level);
$helpdesk2->set_open_status($helpdesk2_printer_open);

$av1 = new Printer();
$av1->set_name('AV1');
$av1->set_location('In AV Center Computer Lab (ARH 202)-- Second Floor of ARH');
$av1->set_string_rep('av');
$av1->set_url('http://av1.grinnell.edu');
$av1->set_lab('The AV Center');
$av1->set_open_status($av_printer_open);

$duerer = new Printer();
$duerer->set_name('DUERER');
$duerer->set_location('Noyce 3810, adjacent to MathLAN');
$duerer->set_string_rep('duerer');
$duerer->set_url('http://duerer.grinnell.edu');
$duerer->set_lab('The MathLAN');
$duerer->set_toner_level($duerer_level);
$duerer->set_open_status($duerer_printer_open);

$scilab = new Printer();
$scilab->set_name('SCILAB');
$scilab->set_location('Science Lab (Noyce 1530)— Southeast corner of First floor');
$scilab->set_string_rep('scilab');
$scilab->set_url('http://scilab.grinnell.edu');
$scilab->set_lab('The Science Lab');
$scilab->set_toner_level($scilab_level);
$scilab->set_open_status($scilab_printer_open);

$scilib = new Printer();
$scilib->set_name('SCILIB');
$scilib->set_location('Kistle Science Library— Second floor of Noyce');
$scilib->set_string_rep('scilib');
$scilib->set_url('http://scilib.grinnell.edu');
$scilib->set_lab('The Science Library');
$scilib->set_toner_level($scilib_level);
$scilib->set_open_status($scilib_printer_open);

$lib_iif = new Printer();
$lib_iif->set_name('LIB_IIF');
$lib_iif->set_location('Interactive Instructional Facility Burling Library Basement');
$lib_iif->set_string_rep('lib_iif');
$lib_iif->set_url('http://lib_iif.grinnell.edu');
$lib_iif->set_lab('The IIF');
$lib_iif->set_toner_level($lib_iif_level);
$lib_iif->set_open_status($lib_iif_printer_open);

$read2 = new Printer();
$read2->set_name('READ2');
$read2->set_location('Read 1st');
$read2->set_string_rep('read2');
$read2->set_url('http://read2.grinnell.edu');
$read2->set_lab('Read');
$read2->set_toner_level($read2_level);
$read2->set_open_status($read2_printer_open);
$read2->set_always_open_status(TRUE);

$cleveland = new Printer();
$cleveland->set_name('CLEVELAND');
$cleveland->set_location('Cleveland Computer Lab— First floor (inside Lounge)');
$cleveland->set_string_rep('cleveland');
$cleveland->set_url('http://cleveland.grinnell.edu');
$cleveland->set_lab('Cleveland');
$cleveland->set_toner_level($cleveland_level);
$cleveland->set_open_status($cleveland_printer_open);
$cleveland->set_always_open_status(TRUE);

$younker2 = new Printer();
$younker2->set_name('YOUNKER2');
$younker2->set_location('Younker Computer Lab— Younker North Basement');
$younker2->set_string_rep('younker2');
$younker2->set_url('http://younker2.grinnell.edu');
$younker2->set_lab('Younker');
$younker2->set_toner_level($younker2_level);
$younker2->set_open_status($younker2_printer_open);
$younker2->set_always_open_status(TRUE);

$baskerville = new Printer();
$baskerville->set_name('BASKERVILLE');
$baskerville->set_location('Noyce 2401 (Statistics Laboratory)');
$baskerville->set_string_rep('baskerville');
$baskerville->set_url('http://baskerville.grinnell.edu');
$baskerville->set_lab('Noyce 2401');
$baskerville->set_toner_level($baskerville_level);
$baskerville->set_open_status($baskerville_printer_open);
$baskerville->set_always_open_status(TRUE);

$norris2 = new Printer();
$norris2->set_name('NORRIS2');
$norris2->set_location('Norris Computer Lab— far East side of the First floor');
$norris2->set_string_rep('norris2');
$norris2->set_url('http://norris2.grinnell.edu');
$norris2->set_lab('Norris');
$norris2->set_toner_level($norris2_level);
$norris2->set_open_status($norris2_printer_open);
$norris2->set_always_open_status(TRUE);

$lazier = new Printer();
$lazier->set_name('LAZIER');
$lazier->set_location('Lazier 1st');
$lazier->set_string_rep('lazier');
$lazier->set_url('http://lazier.grinnell.edu');
$lazier->set_lab('Lazier');
$lazier->set_open_status($lazier_printer_open);
$lazier->set_always_open_status(TRUE);

$ccl3_bw = new Printer();
$ccl3_bw->set_name('CCL3_BW');
$ccl3_bw->set_location('Center lounge of Forum (CCL)');
$ccl3_bw->set_string_rep('ccl3_bw');
$ccl3_bw->set_lab('The CCL');
$ccl3_bw->set_toner_level($ccl3_bw_level);
$ccl3_bw->set_open_status($ccl3_bw_printer_open);

$jrc_email = new Printer();
$jrc_email->set_name('JRC_EMAIL');
$jrc_email->set_location('In JRC E-mail Lounge, just opposite the Spencer Grille');
$jrc_email->set_string_rep('jrc_email');
$jrc_email->set_url('http://jrc_email.grinnell.edu');
$jrc_email->set_lab('The JRC');
$jrc_email->set_toner_level($jrc_email_level);
$jrc_email->set_open_status($jrc_email_printer_open);
$jrc_email->set_always_open_status(TRUE);

$rose = new Printer();
$rose->set_name('ROSE');
$rose->set_location('South half of Rose— First floor');
$rose->set_string_rep('rose');
$rose->set_url('http://rose.grinnell.edu');
$rose->set_lab('Rose');
$rose->set_toner_level($rose_level);
$rose->set_open_status($rose_printer_open);
$rose->set_always_open_status(TRUE);

$inslab2 = new Printer();
$inslab2->set_name('INSLAB2');
$inslab2->set_location('North Side of Gencomp, in the Inslab Computer lab (ARH 107)-- First Floor of ARH');
$inslab2->set_string_rep('inslab2');
$inslab2->set_url('http://inslab2.grinnell.edu');
$inslab2->set_lab('Inslab');
$inslab2->set_toner_level($inslab2_level);
$inslab2->set_open_status($inslab2_printer_open);

$gencomp2 = new Printer();
$gencomp2->set_name('GENCOMP2');
$gencomp2->set_location('ARH 124 -- North Side of Gencomp Computer Lab');
$gencomp2->set_string_rep('gencomp2');
$gencomp2->set_url('http://gencomp2.grinnell.edu');
$gencomp2->set_lab('Gencomp');
$gencomp2->set_toner_level($gencomp2_level);
$gencomp2->set_open_status($gencomp2_printer_open);

$lib_1st_flr =  new Printer();
$lib_1st_flr->set_name('LIB_1ST_FLR');
$lib_1st_flr->set_location('Burling 1st');
$lib_1st_flr->set_string_rep('lib_1st_flr');
$lib_1st_flr->set_url('http://lib_1st_flr.grinnell.edu');
$lib_1st_flr->set_lab('Burling 1st');
$lib_1st_flr->set_toner_level($lib_1st_flr_level);
$lib_1st_flr->set_open_status($lib_1st_flr_printer_open);

$lib_2nd_flr = new Printer();
$lib_2nd_flr->set_name('LIB_2ND_FLR');
$lib_2nd_flr->set_location('Burling 2nd');
$lib_2nd_flr->set_string_rep('lib_2nd_flr');
$lib_2nd_flr->set_url('http://lib_2nd_flr.grinnell.edu');
$lib_2nd_flr->set_lab('Burling 2nd');
$lib_2nd_flr->set_toner_level($lib_2nd_flr_level);
$lib_2nd_flr->set_open_status($lib_2nd_flr_printer_open);

// Create a Printer object array

$printer_array = array ($helpdesk2, $av1, $duerer, $scilab, $scilib, $lib_iif, $read2, $cleveland, $younker2, $baskerville, $norris2,
			$lazier, $ccl3_bw, $jrc_email, $rose, $inslab2, $gencomp2, $lib_1st_flr, $lib_2nd_flr);

// If debugging, print the contents of the array

if (DEBUGGING) {
	print_r ($printer_array);
	}

?>
